﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Joyintech.Model.inpiao365;
using Joyintech.BLL.inpiao365;

namespace Joyintech.Web.inpiao365.UserCenter
{
    public partial class MyUser_Saveinfo : System.Web.UI.Page
    {
        protected String loginmail;
        protected String logintime;
        protected String mobile;
        protected String idcard;
        protected void Page_Load(object sender, EventArgs e)
        {
            customer currentCustomer = customer_BLL.GetInstance().GetCurrentCustomer();

            if (currentCustomer == null)
            {
                Response.Redirect("UserLogin.aspx");
            }

            if (!IsPostBack)
            {
                Bind();
            }
        }

        protected void Bind()
        {
            customer currentCustomer = customer_BLL.GetInstance().GetCurrentCustomer();
            loginmail = currentCustomer.CustomerEmail;
            logintime = currentCustomer.CustomerLastLoginTime.Value.ToString();
            mobile = currentCustomer.CustomerPhone;
            idcard = currentCustomer.CustomerCardId == "" ? "未填写" : currentCustomer.CustomerCardId;
        }
    }
}